package com.hisysteTopet.hisystepet.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hisysteTopet.hisystepet.bean.User;
import com.hisysteTopet.hisystepet.mapper.UserMapper;
import com.hisysteTopet.hisystepet.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectToMessage(String username) {
        return userMapper.selectToMessage(username);
    }

    @Override
    public void updateToPassword(String username, String password) {
        userMapper.updateToPassword(username,password);
    }

    @Override
    public void insertToUser(String username, String password) {
        userMapper.insertToUser(username,password);
    }


}
